<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: winloop2.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00911.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">winloop2.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03629_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00911_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a9c381700d5baace4c2f9da8cb3db77b9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#a9c381700d5baace4c2f9da8cb3db77b9">STW_SAME</a>&#160;&#160;&#160;((<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>) 1)</td></tr>
<tr class="separator:a9c381700d5baace4c2f9da8cb3db77b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a774289ed3ca6f2a044684636f4773d0b"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#a774289ed3ca6f2a044684636f4773d0b">IsVSlick</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a774289ed3ca6f2a044684636f4773d0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa23be739dce2ca3b584412157fb46844"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#aa23be739dce2ca3b584412157fb46844">Is31TrayWindow</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:aa23be739dce2ca3b584412157fb46844"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9bb36894a57445afc91cd9a8a736f72"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#aa9bb36894a57445afc91cd9a8a736f72">IsTrayWindow</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:aa9bb36894a57445afc91cd9a8a736f72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1148a1f76a49f3484add6b082ebc28fa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#a1148a1f76a49f3484add6b082ebc28fa">xxxSetTrayWindow</a> (<a class="el" href="a00365.html#a07e239ec4a8e696c787df685bce70b61">PDESKTOP</a> pdesk, <a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a1148a1f76a49f3484add6b082ebc28fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64a175b3026e102d52e10b1f646ff742"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#a64a175b3026e102d52e10b1f646ff742">xxxAddFullScreen</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a64a175b3026e102d52e10b1f646ff742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d51ef29fc66748c1ad1340863166b48"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00911.html#a6d51ef29fc66748c1ad1340863166b48">xxxRemoveFullScreen</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd)</td></tr>
<tr class="separator:a6d51ef29fc66748c1ad1340863166b48"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a9c381700d5baace4c2f9da8cb3db77b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c381700d5baace4c2f9da8cb3db77b9">&#9670;&nbsp;</a></span>STW_SAME</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STW_SAME&#160;&#160;&#160;((<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>) 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00004">4</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="aa23be739dce2ca3b584412157fb46844"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa23be739dce2ca3b584412157fb46844">&#9670;&nbsp;</a></span>Is31TrayWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL Is31TrayWindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00037">37</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;{</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="a02581.html">PWND</a> pwnd2;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordflow">if</span> (!(pwnd2 = pwnd-&gt;<a class="code" href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">spwndOwner</a>))</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordflow">return</span> (!<a class="code" href="a00911.html#a774289ed3ca6f2a044684636f4773d0b">IsVSlick</a>(pwnd)); <span class="comment">// unowned -- do we want you?</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd2, WEFTOOLWINDOW))</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">return</span>(FALSE); <span class="comment">// owned by a tool window -- we don&#39;t want</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">return</span>((FHas31TrayStyles(pwnd2) ? (<a class="code" href="a00911.html#a774289ed3ca6f2a044684636f4773d0b">IsVSlick</a>(pwnd2)) : TRUE));</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00911_source.html#l00015">IsVSlick()</a> , 以及 <a class="el" href="a00365_source.html#l01394">tagWND::spwndOwner</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00911_source.html#l00059">IsTrayWindow()</a> , 以及 <a class="el" href="a00686_source.html#l00348">xxxUpdateTray()</a>.</p>

</div>
</div>
<a id="aa9bb36894a57445afc91cd9a8a736f72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9bb36894a57445afc91cd9a8a736f72">&#9670;&nbsp;</a></span>IsTrayWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL IsTrayWindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00059">59</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">if</span> ((pwnd==NULL) || !(FDoTray() &amp;&amp; (FCallHookTray() || FPostTray(pwnd-&gt;<a class="code" href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">head</a>.rpdesk))) ||</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            !FTopLevel(pwnd))</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="comment">// Check for WS_EX_APPWINDOW or WS_EX_TOOLWINDOW &quot;overriding&quot; bits</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WEFAPPWINDOW))</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WEFTOOLWINDOW))</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFWIN40COMPAT)) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">if</span> (pwnd-&gt;<a class="code" href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">spwndOwner</a> == NULL)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">if</span> (TestWF(pwnd-&gt;<a class="code" href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">spwndOwner</a>, WFWIN40COMPAT))</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="comment">// if this window is owned by a 3.1 window, check it like a 3.1 window</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">if</span> (!FHas31TrayStyles(pwnd))</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordflow">return</span>(<a class="code" href="a00911.html#aa23be739dce2ca3b584412157fb46844">Is31TrayWindow</a>(pwnd));</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01389">tagWND::head</a>, <a class="el" href="a00911_source.html#l00037">Is31TrayWindow()</a> , 以及 <a class="el" href="a00365_source.html#l01394">tagWND::spwndOwner</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00872_source.html#l01573">ChangeStates()</a>, <a class="el" href="a00752_source.html#l00237">ParkIcon()</a>, <a class="el" href="a00797_source.html#l00104">SetSysMenu()</a>, <a class="el" href="a00710_source.html#l00031">xxxArrangeIconicWindows()</a>, <a class="el" href="a00872_source.html#l00593">xxxCalcValidRects()</a>, <a class="el" href="a00635_source.html#l01273">xxxDestroyWindow()</a>, <a class="el" href="a03719_source.html#l00025">xxxFlashWindow()</a>, <a class="el" href="a00752_source.html#l01085">xxxMinMaximize()</a>, <a class="el" href="a03590_source.html#l00797">xxxMNOpenHierarchy()</a>, <a class="el" href="a00662_source.html#l00178">xxxRedrawFrameAndHook()</a>, <a class="el" href="a00671_source.html#l00694">xxxRedrawTitle()</a>, <a class="el" href="a03242_source.html#l00392">xxxSetWindowData()</a> , 以及 <a class="el" href="a00686_source.html#l00348">xxxUpdateTray()</a>.</p>

</div>
</div>
<a id="a774289ed3ca6f2a044684636f4773d0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a774289ed3ca6f2a044684636f4773d0b">&#9670;&nbsp;</a></span>IsVSlick()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL IsVSlick </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00015">15</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{  </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keywordflow">if</span> (((<span class="keywordtype">unsigned</span>) pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.left &gt; (<span class="keywordtype">unsigned</span>) <a class="code" href="a03257.html#ab597263bdbb3441715804712fcf29e6d">gpDispInfo</a>-&gt;<a class="code" href="a02605.html#a263f5b35c44d9f9ae5c74acae8037644">rcScreen</a>.right ) &amp;&amp;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        ((<span class="keywordtype">unsigned</span>) pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.top  &gt; (<span class="keywordtype">unsigned</span>) <a class="code" href="a03257.html#ab597263bdbb3441715804712fcf29e6d">gpDispInfo</a>-&gt;<a class="code" href="a02605.html#a263f5b35c44d9f9ae5c74acae8037644">rcScreen</a>.bottom) &amp;&amp;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        (pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.top == (<a class="code" href="a03257.html#ab597263bdbb3441715804712fcf29e6d">gpDispInfo</a>-&gt;<a class="code" href="a02605.html#a263f5b35c44d9f9ae5c74acae8037644">rcScreen</a>.bottom+100)) &amp;&amp;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        (pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.left == (<a class="code" href="a03257.html#ab597263bdbb3441715804712fcf29e6d">gpDispInfo</a>-&gt;<a class="code" href="a02605.html#a263f5b35c44d9f9ae5c74acae8037644">rcScreen</a>.right+100)))</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="comment">// MUST BE THE ONE AND ONLY V-SLICK</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <span class="keywordflow">return</span>(TRUE);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    }</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordflow">return</span>(FALSE);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03257_source.html#l00125">gpDispInfo</a>, <a class="el" href="a00365_source.html#l01570">tagDISPLAYINFO::rcScreen</a> , 以及 <a class="el" href="a00365_source.html#l01398">tagWND::rcWindow</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00911_source.html#l00037">Is31TrayWindow()</a>.</p>

</div>
</div>
<a id="a64a175b3026e102d52e10b1f646ff742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64a175b3026e102d52e10b1f646ff742">&#9670;&nbsp;</a></span>xxxAddFullScreen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxAddFullScreen </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00105">105</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;{</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    BOOL    fYielded;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <a class="code" href="a02801.html">PDESKTOP</a> pdesk = pwnd-&gt;<a class="code" href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">head</a>.rpdesk;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pwnd);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    fYielded = FALSE;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keywordflow">if</span> (pdesk == NULL) <span class="keywordflow">return</span> fYielded;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> (!TestWF(pwnd, WFFULLSCREEN) &amp;&amp; FCallTray(pdesk))</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        SetWF(pwnd, WFFULLSCREEN);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordflow">if</span> (!(pdesk-&gt;<a class="code" href="a02801.html#a0b8b2e5938cd98149fd7fff3e856b080">cFullScreen</a>)++) {</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <a class="code" href="a00911.html#a1148a1f76a49f3484add6b082ebc28fa">xxxSetTrayWindow</a>(pdesk, <a class="code" href="a00911.html#a9c381700d5baace4c2f9da8cb3db77b9">STW_SAME</a>);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            fYielded = TRUE;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keywordflow">if</span> ((pwnd = pwnd-&gt;<a class="code" href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">spwndOwner</a>) &amp;&amp; !TestWF(pwnd, WFCHILD) &amp;&amp;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                !pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.right &amp;&amp; !pwnd-&gt;<a class="code" href="a02581.html#a2778d611c2b27395e559c94d05732e1f">rcWindow</a>.left &amp;&amp; !TestWF(pwnd, WFVISIBLE)) {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <a class="code" href="a01881.html">TL</a> tlpwnd;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pwnd, &amp;tlpwnd);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00911.html#a64a175b3026e102d52e10b1f646ff742">xxxAddFullScreen</a>(pwnd))</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                fYielded = TRUE;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            ThreadUnlock(&amp;tlpwnd);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">return</span>(fYielded);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01720">tagDESKTOP::cFullScreen</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00365_source.html#l01389">tagWND::head</a>, <a class="el" href="a00365_source.html#l01398">tagWND::rcWindow</a>, <a class="el" href="a00365_source.html#l01394">tagWND::spwndOwner</a>, <a class="el" href="a00911_source.html#l00004">STW_SAME</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a> , 以及 <a class="el" href="a00911_source.html#l00086">xxxSetTrayWindow()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00872_source.html#l04473">xxxCheckFullScreen()</a>.</p>

</div>
</div>
<a id="a6d51ef29fc66748c1ad1340863166b48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d51ef29fc66748c1ad1340863166b48">&#9670;&nbsp;</a></span>xxxRemoveFullScreen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxRemoveFullScreen </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00137">137</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;{</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="a02801.html">PDESKTOP</a> pdesk = pwnd-&gt;<a class="code" href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">head</a>.rpdesk;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    BOOL    fYielded;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    fYielded = FALSE;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordflow">if</span> (pdesk == NULL) <span class="keywordflow">return</span> fYielded;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">if</span> (TestWF(pwnd, WFFULLSCREEN) &amp;&amp; FCallTray(pdesk))</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        ClrWF(pwnd, WFFULLSCREEN);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keywordflow">if</span> (!(--pdesk-&gt;<a class="code" href="a02801.html#a0b8b2e5938cd98149fd7fff3e856b080">cFullScreen</a>)) {</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;            <a class="code" href="a00911.html#a1148a1f76a49f3484add6b082ebc28fa">xxxSetTrayWindow</a>(pdesk, <a class="code" href="a00911.html#a9c381700d5baace4c2f9da8cb3db77b9">STW_SAME</a>);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;            fYielded = TRUE;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(pdesk-&gt;<a class="code" href="a02801.html#a0b8b2e5938cd98149fd7fff3e856b080">cFullScreen</a> &gt;= 0);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordflow">return</span>(fYielded);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01720">tagDESKTOP::cFullScreen</a>, <a class="el" href="a00365_source.html#l01389">tagWND::head</a>, <a class="el" href="a00911_source.html#l00004">STW_SAME</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a> , 以及 <a class="el" href="a00911_source.html#l00086">xxxSetTrayWindow()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00872_source.html#l04473">xxxCheckFullScreen()</a> , 以及 <a class="el" href="a00635_source.html#l01817">xxxFreeWindow()</a>.</p>

</div>
</div>
<a id="a1148a1f76a49f3484add6b082ebc28fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1148a1f76a49f3484add6b082ebc28fa">&#9670;&nbsp;</a></span>xxxSetTrayWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void xxxSetTrayWindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a07e239ec4a8e696c787df685bce70b61">PDESKTOP</a>&#160;</td>
          <td class="paramname"><em>pdesk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00911_source.html">winloop2.c</a> 第 <a class="el" href="a00911_source.html#l00086">86</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;{</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    HWND hwnd;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">if</span> (pwnd != <a class="code" href="a00911.html#a9c381700d5baace4c2f9da8cb3db77b9">STW_SAME</a>) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        hwnd = PtoH(pwnd);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        Lock(&amp;(pdesk-&gt;<a class="code" href="a02801.html#af04ec42bf410d589a72bdec29a32cbc5">spwndTray</a>), pwnd);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        pwnd = pdesk-&gt;<a class="code" href="a02801.html#af04ec42bf410d589a72bdec29a32cbc5">spwndTray</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        hwnd = PtoH(pwnd);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">if</span> ( FPostTray(pdesk))</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="a00827.html#a915a9a84da7da3fc6d8f5bb6181e98c8">PostShellHookMessages</a>(pdesk-&gt;<a class="code" href="a02801.html#a0b8b2e5938cd98149fd7fff3e856b080">cFullScreen</a> ? HSHELL_RUDEAPPACTIVATED : HSHELL_WINDOWACTIVATED, hwnd);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordflow">if</span> ( FCallHookTray() )</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <a class="code" href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a>(HSHELL_WINDOWACTIVATED, (WPARAM) hwnd,</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                (pdesk-&gt;<a class="code" href="a02801.html#a0b8b2e5938cd98149fd7fff3e856b080">cFullScreen</a> ? 1 : 0), WH_SHELL);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01720">tagDESKTOP::cFullScreen</a>, <a class="el" href="a00827_source.html#l02793">PostShellHookMessages()</a>, <a class="el" href="a00899_source.html#l01718">tagDESKTOP::spwndTray</a>, <a class="el" href="a00911_source.html#l00004">STW_SAME</a> , 以及 <a class="el" href="a00701_source.html#l00954">xxxCallHook()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00911_source.html#l00105">xxxAddFullScreen()</a>, <a class="el" href="a00872_source.html#l04010">xxxEndDeferWindowPosEx()</a>, <a class="el" href="a00911_source.html#l00137">xxxRemoveFullScreen()</a> , 以及 <a class="el" href="a00686_source.html#l00348">xxxUpdateTray()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa02581_html_a9e4b9545017c505ebd9b8808bd470ab9"><div class="ttname"><a href="a02581.html#a9e4b9545017c505ebd9b8808bd470ab9">tagWND::spwndOwner</a></div><div class="ttdeci">struct tagWND * spwndOwner</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01394">user.h:1394</a></div></div>
<div class="ttc" id="aa02801_html"><div class="ttname"><a href="a02801.html">tagDESKTOP</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01703">userk.h:1703</a></div></div>
<div class="ttc" id="aa00911_html_a774289ed3ca6f2a044684636f4773d0b"><div class="ttname"><a href="a00911.html#a774289ed3ca6f2a044684636f4773d0b">IsVSlick</a></div><div class="ttdeci">BOOL IsVSlick(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00911_source.html#l00015">winloop2.c:15</a></div></div>
<div class="ttc" id="aa00827_html_a915a9a84da7da3fc6d8f5bb6181e98c8"><div class="ttname"><a href="a00827.html#a915a9a84da7da3fc6d8f5bb6181e98c8">PostShellHookMessages</a></div><div class="ttdeci">void PostShellHookMessages(UINT message, HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00827_source.html#l02793">rare.c:2793</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa02801_html_a0b8b2e5938cd98149fd7fff3e856b080"><div class="ttname"><a href="a02801.html#a0b8b2e5938cd98149fd7fff3e856b080">tagDESKTOP::cFullScreen</a></div><div class="ttdeci">int cFullScreen</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01720">userk.h:1720</a></div></div>
<div class="ttc" id="aa00911_html_a9c381700d5baace4c2f9da8cb3db77b9"><div class="ttname"><a href="a00911.html#a9c381700d5baace4c2f9da8cb3db77b9">STW_SAME</a></div><div class="ttdeci">#define STW_SAME</div><div class="ttdef"><b>Definition:</b> <a href="a00911_source.html#l00004">winloop2.c:4</a></div></div>
<div class="ttc" id="aa02581_html_a6be2d067ba15d4ec8cfc2e87922094f5"><div class="ttname"><a href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">tagWND::head</a></div><div class="ttdeci">THROBJHEAD head</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01389">user.h:1389</a></div></div>
<div class="ttc" id="aa00899_html_abfae1dfb48db23dcea4494f7990ad6a6"><div class="ttname"><a href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a></div><div class="ttdeci">VOID ThreadLock(PVOID pobj, PTL ptl)</div></div>
<div class="ttc" id="aa00911_html_a1148a1f76a49f3484add6b082ebc28fa"><div class="ttname"><a href="a00911.html#a1148a1f76a49f3484add6b082ebc28fa">xxxSetTrayWindow</a></div><div class="ttdeci">void xxxSetTrayWindow(PDESKTOP pdesk, PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00911_source.html#l00086">winloop2.c:86</a></div></div>
<div class="ttc" id="aa03257_html_ab597263bdbb3441715804712fcf29e6d"><div class="ttname"><a href="a03257.html#ab597263bdbb3441715804712fcf29e6d">gpDispInfo</a></div><div class="ttdeci">PDISPLAYINFO gpDispInfo</div><div class="ttdef"><b>Definition:</b> <a href="a03257_source.html#l00125">kernel/globals.c:125</a></div></div>
<div class="ttc" id="aa00911_html_aa23be739dce2ca3b584412157fb46844"><div class="ttname"><a href="a00911.html#aa23be739dce2ca3b584412157fb46844">Is31TrayWindow</a></div><div class="ttdeci">BOOL Is31TrayWindow(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00911_source.html#l00037">winloop2.c:37</a></div></div>
<div class="ttc" id="aa01881_html"><div class="ttname"><a href="a01881.html">_TL</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00347">usercli.h:347</a></div></div>
<div class="ttc" id="aa02581_html_a2778d611c2b27395e559c94d05732e1f"><div class="ttname"><a href="a02581.html#a2778d611c2b27395e559c94d05732e1f">tagWND::rcWindow</a></div><div class="ttdeci">RECT rcWindow</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01398">user.h:1398</a></div></div>
<div class="ttc" id="aa02581_html"><div class="ttname"><a href="a02581.html">tagWND</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01388">user.h:1388</a></div></div>
<div class="ttc" id="aa02605_html_a263f5b35c44d9f9ae5c74acae8037644"><div class="ttname"><a href="a02605.html#a263f5b35c44d9f9ae5c74acae8037644">tagDISPLAYINFO::rcScreen</a></div><div class="ttdeci">RECT rcScreen</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01570">user.h:1570</a></div></div>
<div class="ttc" id="aa00899_html_a70b09c3e2b495630f4205d34be505afb"><div class="ttname"><a href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a></div><div class="ttdeci">VOID CheckLock(PVOID pobj)</div></div>
<div class="ttc" id="aa02801_html_af04ec42bf410d589a72bdec29a32cbc5"><div class="ttname"><a href="a02801.html#af04ec42bf410d589a72bdec29a32cbc5">tagDESKTOP::spwndTray</a></div><div class="ttdeci">struct tagWND * spwndTray</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01718">userk.h:1718</a></div></div>
<div class="ttc" id="aa00701_html_a4a596c02b66f7f049c18711b882e0b89"><div class="ttname"><a href="a00701.html#a4a596c02b66f7f049c18711b882e0b89">xxxCallHook</a></div><div class="ttdeci">int xxxCallHook(int nCode, DWORD wParam, DWORD lParam, int iHook)</div><div class="ttdef"><b>Definition:</b> <a href="a00701_source.html#l00954">hooks.c:954</a></div></div>
<div class="ttc" id="aa00911_html_a64a175b3026e102d52e10b1f646ff742"><div class="ttname"><a href="a00911.html#a64a175b3026e102d52e10b1f646ff742">xxxAddFullScreen</a></div><div class="ttdeci">BOOL xxxAddFullScreen(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00911_source.html#l00105">winloop2.c:105</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a00911.html">winloop2.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
